package hpasDataEntities;

import java.math.BigDecimal;

public class HardwareItem
{
    private int itemId;
    private int hardwareId;
    private int retailerId;
    private BigDecimal price;

    public HardwareItem()
    {

    }

    public HardwareItem(HardwareItem existed)
    {
        this.itemId = existed.getItemId();
        this.hardwareId = existed.getHardwareId();
        this.retailerId = existed.getRetailerId();
        this.price = existed.getPrice();
    }

    public int getItemId()
    {
        return itemId;
    }

    public void setItemId(int itemId)
    {
        this.itemId = itemId;
    }

    public int getHardwareId()
    {
        return hardwareId;
    }

    public void setHardwareId(int hardwareId)
    {
        this.hardwareId = hardwareId;
    }

    public int getRetailerId()
    {
        return retailerId;
    }

    public void setRetailerId(int retailerId)
    {
        this.retailerId = retailerId;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public double getRealPrice()
    {
        return price.doubleValue();
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public void setPrice(double price)
    {
        this.price = new BigDecimal(price);
    }
}
